#ifndef WORKER_H
#define WORKER_H

#include <QObject>
#include <QDebug>




class Worker : public QObject
{
    Q_OBJECT
public:
    explicit Worker(QObject *parent = nullptr);
    ~Worker();

public slots:
    void doWork(); // 执行耗时操作

signals:
    void finished(); // 完成信号
    void sendData(const QString &data); // 发送数据信号
};

#endif // WORKER_H
